package com.dhcc.DRGsHosp.core.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.openkoala.koala.commons.domain.KoalaLegacyEntity;

/**
 * 保存筛选条件的实体类
 * @ClassName: SizerCondition  
 * @Description ：    
 * @Date: 2017年12月6日 下午2:54:37  
 * @Author ChenHanlin 
 * @Version 3.0.2 DHC-DRGs
 */
@Entity
@Table(name="MR_SIZER_CONDITION", schema = "DRGs")
public class SizerCondition extends KoalaLegacyEntity {

	/** 
	 *  @Description：
	 *  serialVersionUID
	 */
	private static final long serialVersionUID = -1129435009677156810L;

	//模块儿代码（模块儿代码+用户code）与从表关联
	@Id
	@Column(name = "MOUDLE_CODE", nullable = false)
	private String moudkeCode;
	
	//查询条件
	@Column(name = "CODITION_VALUE", nullable = false)
	private String conditionValue;
	
	//角色名称
	@Column(name = "ROLE_CODE")
	private String roleCode;
	
	//用户名称
	@Column(name = "USER_CODE")
	private String userCode;
	
	
	public SizerCondition() {
		super();
	}
	
	
	
	public SizerCondition(String moudkeCode) {
		super();
		this.moudkeCode = moudkeCode;
	}

	public SizerCondition(String moudkeCode, String conditionValue, String roleCode, String userCode) {
		super();
		this.moudkeCode = moudkeCode;
		this.conditionValue = conditionValue;
		this.roleCode = roleCode;
		this.userCode = userCode;
	}

	public String getMoudkeCode() {
		return moudkeCode;
	}

	public void setMoudkeCode(String moudkeCode) {
		this.moudkeCode = moudkeCode;
	}

	public String getConditionValue() {
		return conditionValue;
	}

	public void setConditionValue(String conditionValue) {
		this.conditionValue = conditionValue;
	}

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	@Override
	public Serializable getId() {
		return this.moudkeCode;
	}

	@Override
	public String[] businessKeys() {
		return null;
	}

}
